/*
Author: Surpass-HC
Source: https://gitee.com/hxchuan000/clpc-1
Mail: surpass-hc@qq.com
*/
#ifndef __BASE_CONFIG_COMMON_H__
#define DEVICE_PLATFORM_LINUX 0
#define DEVICE_PLATFORM_ARM32_MCU 1
#define DEVICE_PLATFORM_C51_MCU 2
#define DEVICE_PLATFORM_CONFIGURE DEVICE_PLATFORM_LINUX

#if DEVICE_PLATFORM_CONFIGURE == DEVICE_PLATFORM_C51_MCU

// config 51 chip
#define DEV_PLAT_51_STC11 0
#define DEV_PLAT_51_STC8H 1
#define DEV_PLAT_51_STC32 2
#define DEV_PLAT_51_CHIP_TYPE DEV_PLAT_51_STC11
// system lock
// #define STC_WORK_SYSCLK 11059200
#define STC_WORK_SYSCLK 35000000
// for stc32
// #define STC_EEPROM_RW_ADDR_BEGIN 0XFF3000 // for stc32g8k64
#define STC_EEPROM_RW_ADDR_BEGIN 0XFE0000 // for stc32g12k128
#define DEV_PLAT_51_SN_DEF "1234567890ABCDEF"
#endif
#endif
